from django.contrib import admin
from smart_monitor import models


# Register your models here.
class UserAdmin(admin.ModelAdmin):
    list_display = ('user_name', 'user_email', 'user_authority')


class CommunicatorAdmin(admin.ModelAdmin):
    list_display = ('communicator_id', 'communicator_info', 'communicator_state', 'user_name')


class TerminalAdmin(admin.ModelAdmin):
    list_display = ('terminal_id', 'terminal_info', 'terminal_state', 'communicator')


admin.site.register(models.User, UserAdmin)
admin.site.register(models.Communicator, CommunicatorAdmin)
admin.site.register(models.Terminal, TerminalAdmin)
